package cn.wolfcode.mapper;

import cn.wolfcode.domain.Exam;
import cn.wolfcode.domain.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Exam record);

    Exam selectByPrimaryKey(Long id);

    List<Exam> selectAll();

    int updateByPrimaryKey(Exam record);

    //插入中间关系表的数据
    void insertExamQuestionMiddleTable(@Param("id") Long id , @Param("questionId") Long questionId , @Param("count") Integer count , @Param("score") Integer score);
}